package com.hucc.redislock;

import com.hucc.redislock.result.CommandResult;

/**
 * redis 命令执行者
 */
public class RedisCommandExecutor {
    private static final RedisCommandExecutor INSTANCE = new RedisCommandExecutor();

    private RedisCommandExecutor() {
    }

    public static RedisCommandExecutor getInstance() {
        return INSTANCE;
    }

    public CommandResult executeCommand(RedisCommand command) {

        return command.execute();
    }
}
